package Test3;
public class Square extends Figure{
	private double length;
	private double width;
	public Square(double length,double width){
		this.length=length;
		this.width=width;
	}
	public double area(){
		return (length*width);
	}
	public double perimeter(){
		return (length*width*2);
	}
}
